<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回模块函数名称的数组</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.get-defined-constants.html">get_defined_constants</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.get-include-path.html">get_include_path</a></div>
 <div class="up"><a href="ref.info.html">PHP 选项/信息 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.get-extension-funcs" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_extension_funcs</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">get_extension_funcs</span> &mdash; <span class="dc-title">返回模块函数名称的数组</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.get-extension-funcs-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>get_extension_funcs</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$module_name</code></span>
   )</div>

  <p class="para rdfs-comment">
   该函数根据 <em><code class="parameter">module_name</code></em> 返回模块内定义的所有函数的名称。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-extension-funcs-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">module_name</code></em></dt>

     <dd>

      <p class="para">
       模块名称。
      </p>
      <blockquote class="note"><p><strong class="note">Note</strong>: 
       <p class="para">
        这个参数必须是<em class="emphasis">小写（lowercase）</em>的。
       </p>
      </p></blockquote>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-extension-funcs-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回包含所有函数名的数组，如果 <em><code class="parameter">module_name</code></em> 不是一个有效的扩展则返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.get-extension-funcs-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-461">
    <p><strong>Example #1 打印 XML 函数</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">get_extension_funcs</span><span style="color: #007700">(</span><span style="color: #DD0000">"xml"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [0] =&gt; xml_parser_create
    [1] =&gt; xml_parser_create_ns
    [2] =&gt; xml_set_object
    [3] =&gt; xml_set_element_handler
    [4] =&gt; xml_set_character_data_handler
    [5] =&gt; xml_set_processing_instruction_handler
    [6] =&gt; xml_set_default_handler
    [7] =&gt; xml_set_unparsed_entity_decl_handler
    [8] =&gt; xml_set_notation_decl_handler
    [9] =&gt; xml_set_external_entity_ref_handler
    [10] =&gt; xml_set_start_namespace_decl_handler
    [11] =&gt; xml_set_end_namespace_decl_handler
    [12] =&gt; xml_parse
    [13] =&gt; xml_parse_into_struct
    [14] =&gt; xml_get_error_code
    [15] =&gt; xml_error_string
    [16] =&gt; xml_get_current_line_number
    [17] =&gt; xml_get_current_column_number
    [18] =&gt; xml_get_current_byte_index
    [19] =&gt; xml_parser_free
    [20] =&gt; xml_parser_set_option
    [21] =&gt; xml_parser_get_option
    [22] =&gt; utf8_encode
    [23] =&gt; utf8_decode
)
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.get-extension-funcs-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.get-loaded-extensions.html" class="function" rel="rdfs-seeAlso">get_loaded_extensions()</a> - 返回所有编译并加载模块名的 array</span></li>
    <li class="member"><span class="methodname"><a href="reflectionextension.getfunctions.html" class="methodname" rel="rdfs-seeAlso">ReflectionExtension::getFunctions()</a> - Gets extension functions</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.get-defined-constants.html">get_defined_constants</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.get-include-path.html">get_include_path</a></div>
 <div class="up"><a href="ref.info.html">PHP 选项/信息 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
